package com.voucher.qiege.three;

public class Main {
    public static void main(String[] args) {
        try {
            // 登录
            LoginService.login("330270", "Mx123456");
//            LoginService.login("XYK0AfISicem", "aykG*isjI,^X");
//            LoginService.login("#%^@EcArhCEU", "JWR##h!nLR3B");
            // 传入参数：流程号和保存路径
//            String fdId = "19517a30a83d3d651df06894576952a7";
//            String fdId = "195419d19ca44454fbd29534545b3b01";
            String fdId = "197e8ebbc159a24b0538e7b47efb0cee";
            String savePath = "D:/file.jpg";//需要校验文件的格式，png、jpg、gif、pdf、xls、xlsx、doc、docx、ppt、pptx、txt、zip、rar、7z、tar、gz、bz2、tar.gz、tar.bz2等
            // 1、格式不对，下载文件会乱码
            // 2、无流程权限，会提示无权限
            SecureDownloader.download(fdId, savePath);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
